package com.oop.Demo12;

public class Outer {
    private int id = 1;

    public void out() {
        System.out.println("这是外部类方法");
    }

    public class Inner {
        public void in() {
            System.out.println("这是内部类方法");
        }

        //获得外部类私有属性
        public void getID() {
            System.out.println(id);
        }
    }
}
